package org.zxl.springbootdemo.poi.word;

import org.apache.poi.xwpf.usermodel.XWPFDocument;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


public class TestExportWord2 {

    public static void test(String[] args) throws Exception {
        ExportWord2 ew = new ExportWord2();
        String pcitureUrl1 = "E:/1.jpg";
        String[] pictureUrls = new String[]{pcitureUrl1};
        XWPFDocument document = ew.createXWPFDocument("经济内循环", pictureUrls);
        ew.exportCheckWord( document, "E:/expWordTest2.docx");
        System.out.println("文档生成成功");
    }
}